import Vue from 'vue'
import App from './App.vue'
import router from './router'

/*注册插件 dialog*/
// import Dialog from './plugins/dialog/index.js'
// 如果引入的文件是某个目录下的 index.js, index.js 可以省略不写
import Dialog from './plugins/dialog'

Vue.use(Dialog, {type: 'danger', duration: 1000});

/*注册 http ajax请求工具*/
import Httpd from './plugins/httpd';

Vue.use(Httpd);

/*注册 elementui*/
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);
/*
* Vue.use(ElementUI); 底层就是使用
* Vue.component('el-button', {});
* Vue.component('el-xxxx', {});
* */


Vue.config.productionTip = false

new Vue({
    router,
    render: h => h(App)
}).$mount('#app')
